package cxt.cn.controller;

import cxt.cn.service.RabbitMqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: ChengXiaotian
 * @Date: 2020-06-19 21:02
 * @Description:
 */
@RestController
public class RabbitController {
    @Autowired
    private RabbitMqService rabbitMqService;
    @GetMapping("/sendMessage")
    public String sendMessage(){
        return rabbitMqService.send();
    }
}
